<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>仓库信息管理</title>
</head>
<link rel="stylesheet" type="text/css" href="/wms/js/plugins/jquery-easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/wms/js/plugins/jquery-easyui/themes/icon.css">
<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/jquery.min.js"></script>
<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="/wms/js/common/common.js"></script>
<script type="text/javascript" src="/wms/js/common/depot.js"></script>
<%@include file="/WEB-INF/views/common/page.jsp" %>
<body class="easyui-layout">
	<s:if test="hasActionMessages()">
			<script type="text/javascript">
				var msg = '<s:property value="actionMessages[0]"/>';
				$.messager.alert('操作提示', msg, 'info',function() {
					refreshAllTab();
				});
			</script>
		</s:if>
		<div data-options="region:'north',border:false" style="height: 0%">
		<form id="queryForm" method="post" action="/wms/depot.action">
			<s:hidden name="qo.currentPage"/>
			<s:hidden name="qo.pageSize"/>
		</form>
	</div>
	<div data-options="region:'south',border:false" style="height: 100%">
		<table id="table_datagrid">
			<thead>
				<tr>	
						<th data-options="field:'id',hidden:true">仓库名称</th>
						<th data-options="field:'name',width:1,align:'center'">仓库名称</th>
						<th data-options="field:'address',width:1,align:'center'">地址</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="#objs">
					<tr>
							<td><s:property value="id" /></td>
							<td><s:property value="name" /></td>
							<td><s:property value="address" /></td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
		<div id="dg_tb" style="display: none">
			<a class="easyui-linkbutton" data-options="text:'添加',iconCls:'icon-add',plain:true,onClick:add" data-url="/wms/depot_input.action"></a>
			<a class="easyui-linkbutton" data-options="text:'编辑',iconCls:'icon-edit',plain:true,onClick:edit" data-url="/wms/depot_input.action?depot.id="></a>
			<a class="easyui-linkbutton" data-options="text:'删除',iconCls:'icon-remove',plain:true,onClick:remove" 
			data-url="/wms/depot_delete.action?depot.id="></a> 
			<a class="easyui-linkbutton" data-options="text:'刷新',iconCls:'icon-reload',plain:true,onClick:query"></a>
		</div>

	</div>
</body>
</html>
